package session.stateless.FRM;

import entity.FRM.CreditAccount;
import entity.CRM.Customer;
import entity.CRM.SaleOrder;
import javax.ejb.Local;

@Local
public interface CreditAccountBeanLocal {
    public CreditAccount createCreditAccount(Double deposit, Double creditLimit, Double creditBalance, Double creditDiscount, Long creditPeriod, Long netPeriod);
    public void addDeposit(Customer customer, Double depositAdd);
    public void modifyCreditBalance_AddSaleOrder(Customer customer, Double totalPrice);
    public void modifyCreditBalance_ReduceSaleOrder(SaleOrder saleOrder,Double oldPrice, Double newPrice);
    public Double isPass_checkCreditBalance(Customer customer);
}
